/*
 * Filename:    IntegrityArtificialScoreDAOImpl.java
 * Copyright:   2015 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2015年1月29日
 */
package com.paic.mhis.hcpms.trust.intergration.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.paic.mhis.common.base.dto.PaginationDTO;
import com.paic.mhis.hcpms.trust.dto.IntegrityDoctorDTO;
import com.paic.mhis.hcpms.trust.dto.IntegrityMedicalDTO;
import com.paic.mhis.hcpms.trust.intergration.dao.IntegrityArtificialScoreDAO;
import com.paic.pafa.biz.dao.BaseDAO;

@Component("integrityArtificialScoreDAO")
public class IntegrityArtificialScoreDAOImpl extends BaseDAO implements IntegrityArtificialScoreDAO {

	/**
	 * 根据流程编号查询姓名及执业医院信息
	 * 
	 * @param map
	 * @return
	 */
	@Override
	public List<IntegrityDoctorDTO> queryIntegrityDoctorByTaskNo(String taskNo) {
		List<IntegrityDoctorDTO> list = (List<IntegrityDoctorDTO>) this._queryForList(
				"integrityscore.queryIntegrityDoctorByTaskNo", taskNo);
		return list;
	}

	@Override
	public List<IntegrityMedicalDTO> insuredMedicalListAddExport(PaginationDTO pdto) {
		List<IntegrityMedicalDTO> list = (List<IntegrityMedicalDTO>) this._queryForList(
				"integrityscore.getAddStorageReport", pdto);
		return list;
	}

	@Override
	public List<IntegrityMedicalDTO> insuredMedicalListAddExportTemp(PaginationDTO pdto) {
		List<IntegrityMedicalDTO> list = (List<IntegrityMedicalDTO>) this._queryForList(
				"integrityscore.getAddTempReport", pdto);
		return list;
	}

	/**
	 * 获取流程编号
	 * 
	 * @return
	 */
	@Override
	public String queryIntegrityNo() {
		return this._getString("integrityscore.queryIntegrityNo", null);
	}

	/**
	 * 保存证件信息表
	 * 
	 * @param paramter
	 * @return
	 */
	@Override
	public int updateCredentials(Map<String, Object> paramter) {
		return this._update("integrityscore.updateCredentials", paramter);
	}

	/**
	 * 根据医务人员证件号码查询姓名及执业医院信息
	 * 
	 * @param map
	 * @return
	 */
	@Override
	public List<IntegrityDoctorDTO> queryIntegrityDoctor(Map<String, Object> paramter) {
		List<IntegrityDoctorDTO> list = (List<IntegrityDoctorDTO>) this._queryForList(
				"integrityscore.queryIntegrityDoctor", paramter);
		return list;
	}

	/**
	 * 根据医务人员证件号码查询姓名及执业医院信息
	 * 
	 * @param map
	 * @return
	 */
	@Override
	public List<IntegrityDoctorDTO> queryIntegrityDoctorList(String taskNo) {
		List<IntegrityDoctorDTO> list = (List<IntegrityDoctorDTO>) this._queryForList(
				"integrityscore.queryIntegrityDoctorList", taskNo);
		return list;
	}

	@Override
	public List<IntegrityMedicalDTO> findMedicalDetailReport(Map<Object, Object> paramMap) {
		return (List<IntegrityMedicalDTO>) this._list("medicalDetailReport", paramMap);
	}

}
